package com.example.wilson.lifediary;


import android.net.Uri;
import android.provider.BaseColumns;

public class Fields {
    public static final String AUTHORITY = "com.example.wilson.lifediary.diarycontentprovider";

    public Fields(){}
    public static final class DiaryColumns implements BaseColumns{
        //定义了列表字段的名字
        private DiaryColumns(){}
        //正式声明了contentURI
        public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/diaries");

        public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.google.diary";

        public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.google.diary";

        public static final String DEFAULT_SORT_ORDER = "created DESC";

        public static final String TITLE = "title";

        public static final String BODY = "body";

        public static final String CREATED = "created";

    }
}
